﻿@model DietPlanning.Models.Diet

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Details</h2>

<fieldset>
    <legend>Diet</legend>

    <div class="display-label">User</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.User.UserName)
    </div>

    <div class="display-label">DateTimeBegin</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DateTimeBegin)
    </div>

    <div class="display-label">DateTimeEnd</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DateTimeEnd)
    </div>

    <div class="display-label">DietName</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DietName)
    </div>

    <div class="display-label">CalorieNeed</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CalorieNeed)
    </div>

    <div class="display-label">isNew</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.isNew)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.DietID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
